package com.assistant.domain;

/**
 * 用户信息类，与数据库对应
 *
 * @author YangKang
 */
public class Userinfo {
    private int userId;   //用户id
    private String userName;    //用户名
    private String userPwd;     //用户密码

    public Userinfo() {
    }

    public Userinfo(String userName, String userPwd) {
        this.userName = userName;
        this.userPwd = userPwd;
    }

    public Userinfo(int userId, String userName, String userPwd) {
        this.userId = userId;
        this.userPwd = userPwd;
        this.userName = userName;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    @Override
    public String toString(){
        return "uerId = " +userId+"\tuserName = "+userName+"\tuserPwd = "+userPwd;
    }

}
